package Object.enumTest;

/**
 * @author haomin
 * @date 2022/11/12 11:36
 **/
public enum Enum1 {
    Red, Blue, Pink;

    public static void main(String[] args) {
        Enum1 enum1 = Enum1.Red;
        switch (enum1){
            case Red:
                System.out.println("Red"); break;
            case Blue:
                System.out.println("Blue"); break;
            case Pink:
                System.out.println("Pink"); break;
        }
    }
}